/*
PROG: prttri
LANG: C++
ID : phamnamlo2
*/


#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <string>

using namespace std;

///Variables///
int n;
char a[3];
//////////////

void init()
{
}
 
void inp()
{
  scanf("%d\n", &n);
  for (int i = 0 ; i < 3; i++) scanf("%c", &a[i]);
}
 
void process()
{
  printf("%c\n", a[2]);
  for (int i = 1; i < n-1; i++)
  {
    printf("%c", a[0]);
    for (int j = 2; j <= i; j++) printf(" ");
    printf("%c\n", a[2]);    
  }   
  printf("%c", a[0]);
  for (int i = 1; i < n; i++) printf("%c", a[1]);
  printf("\n");
}
 
void out()
{
}
 
main()
{
  freopen("prttri.in", "r", stdin);
  freopen("prttri.out", "w", stdout); 

  init();
  inp();
  process();
  out();        
  return 0;
};
      
